.layui-upload-1 {
    .layui-upload-list {
        box-sizing: content-box;
        overflow: hidden;
        min-height: 156px;
        padding: 15px 0 0 15px;
        border: 1px solid #CCCCCC;
        position: relative;
    }
    .upload-bg {
        display: none;
        width: 260px;
        height: 114px;
        background: url(../img/upload-bg.png) no-repeat;
        position: absolute;
        top: 50%;
        left: 50%;
        margin-left: -130px;
        margin-top: -57px;
        &:only-child {
            display: block;
        }
    }
    .layui-upload-item {
        float: left;
        width: 156px;
        height: 156px;
        margin: 0 15px 15px 0;
        border: 1px solid #DDDDDD;
        position: relative;
        &:hover {
            .preview {
                display: block;
            }
        }
    }
    .layui-upload-img {
        width: 100%;
        height: 100%;
    }
    .single-upload {
        height: 30px;
        line-height: 30px;
        font-size: 16px;
        color: #fff;
        position: absolute;
        bottom: 5px;
        right: 30px;
        cursor: pointer;
        &:before {
            content: "\e681";
            font-family: layui-icon!important;
        }
    }
    .delete {
        height: 30px;
        line-height: 30px;
        font-size: 16px;
        color: #fff;
        position: absolute;
        bottom: 5px;
        right: 6px;
        cursor: pointer;
        &:before {
            content: "\e640";
            font-family: layui-icon!important;
        }
    }
    .preview {
        display: none;
        width: 50px;
        height: 50px;
        line-height: 50px;
        border-radius: 25px;
        text-align: center;
        font-size: 16px;
        color: #fff;
        background-color: rgba(34, 34, 58, 0.7);
        position: absolute;
        left: 50%;
        top: 50%;
        margin-left: -25px;
        margin-top: @previewTHeight*-0.5 - 25px;
        cursor: pointer;
        &:before {
            content: "\e615";
            font-family: layui-icon!important;
        }
    }
    .layui-progress {
        display: none;
        width: 90%;
        position: absolute;
        left: 5%;
        top: 50%;
        margin-top: @previewTHeight*-0.5 - 9px;
    }
    .preview-pdf-img {
        background: url(../img/pdf.jpg) center no-repeat;
    }
    @previewTHeight: 40px;
    .preview-t {
        display: block;
        box-sizing: border-box;
        width: 100%;
        height: 40px;
        line-height: 40px;
        padding-left: 10px;
        padding-right: 50px;
        color: rgb(255, 255, 255);
        background-color: rgba(34, 34, 58, 0.7);
        font-size: 12px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        position: absolute;
        left: 0;
        bottom: 0;
    }
    .layui-upload-button {
        width: 100%;
        margin-top: 10px;
        margin-bottom: 10px;
        overflow: hidden;
        .layui-btn:first-child {
            border-radius: 4px 0 0 4px;
        }
        .layui-btn:last-child {
            border-radius: 0 4px 4px 0;
        }
    }
    .upload-all-t {
        float: left;
        width: ~'calc(100% - 244px)';
        cursor: auto;
        color: rgb(127, 143, 164);
        text-align: left;
        &:hover {
            color: rgb(127, 143, 164);
        }
    }
    .upload-all {
        float: left;
        width: 122px;
        color: rgb(77, 166, 248);
        &:hover {
            color: rgb(77, 166, 248);
        }
    }
    .upload-file {
        float: left;
        width: 122px;
        background: #c5d0de;
        color: #FFFFFF;
        &:hover {
            color: #FFFFFF;
        }
    }
}

.layui-carousel>[carousel-item]>* {
    display: block;
    visibility: hidden;
    z-index: -9;
}

.layui-carousel>[carousel-item]>.layui-carousel-next,
.layui-carousel>[carousel-item]>.layui-carousel-prev,
.layui-carousel>[carousel-item]>.layui-this {
    display: block;
    visibility: visible;
    z-index: 0;
}

.frame-pdf-bg {
    background: url(../img/pdf.jpg) center no-repeat;
}

.preview-img-left-btn,
.preview-img-right-btn {
    position: absolute;
    top: 20px;
    left: 50%;
    z-index: 9;
    margin-left: -18px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    font-size: 20px;
    border: 0;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, .2);
    color: #fff;
    -webkit-transition-duration: .3s;
    transition-duration: .3s;
    cursor: pointer;
    &:hover {
        background-color: rgba(0, 0, 0, .35);
    }
    &:before {
        font-family: layui-icon!important;
        font-size: 20px;
        font-style: normal;
        content: "\e666";
    }
}

.preview-img-left-btn {
    margin-left: -48px;
    transform: scale(-1, 1);
}

.preview-img-right-btn {
    margin-left: 12px;
}

.preview-img-wrap {
    img {
        transition: all 0.5s;
        max-width: 100%;
        max-height: 100%;
    }
    &[rotate="-90"] {
        img {
            max-width: 100vh;
            max-height: 100vw;
            transform: rotate(-90deg);
        }
    }
    &[rotate="-180"] {
        img {
            max-width: 100%;
            max-height: 100%;
            transform: rotate(-180deg);
        }
    }
    &[rotate="-270"] {
        img {
            max-width: 100vh;
            max-height: 100vw;
            transform: rotate(-270deg);
        }
    }
    &[rotate="-360"] {
        img {
            max-width: 100%;
            max-height: 100%;
            transform: rotate(-360deg);
        }
    }
    &[rotate="90"] {
        img {
            max-width: 100vh;
            max-height: 100vw;
            transform: rotate(90deg);
        }
    }
    &[rotate="180"] {
        img {
            max-width: 100%;
            max-height: 100%;
            transform: rotate(180deg);
        }
    }
    &[rotate="270"] {
        img {
            max-width: 100vh;
            max-height: 100vw;
            transform: rotate(270deg);
        }
    }
    &[rotate="360"] {
        img {
            max-width: 100%;
            max-height: 100%;
            transform: rotate(360deg);
        }
    }
    &[rotate="0"] {
        img {
            max-width: 100%;
            max-height: 100%;
            transition: none;
        }
    }
}

.layui-upload-2 {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    .layui-btn:first-child {
        border-radius: 4px 0 0 4px;
    }
    .layui-btn:last-child {
        border-radius: 0 4px 4px 0;
    }
    .upload-file {
        float: left;
        //width: 122px;
        color: #4da6f8;
        &:hover {
            color: #4da6f8;
        }
    }
    .upload-all {
        float: left;
        //width: 122px;
        color: #4da6f8;
        &:hover {
            color: #4da6f8;
        }
    }
}